<link rel="stylesheet" href="/res/comment/css/mood.css" type="text/css"/>
<script type="text/javascript" src="<?=$_SERVER['config']['style']?>/res/comment/js/state.js"></script>
<span class="mood-content">			<?=preg_replace($_SERVER['config']['smile2']['searcharray'],$_SERVER['config']['smile2']['replacearray'],$this->data['feel']).$this->data['state'] ?>
			  </span>
			<? if(!_('uid') || _('uid') == self::$login['uid']): ?>
			  		<a class="view-mood-icon" title="点击查看心情" href="/~comment.signature.index"></a>
			<? else: ?>
			  		<a class="view-mood-icon" title="点击查看心情" href="/~comment.signature.get_afriend_state/uid/<?=_('uid');?>"></a>
			<? endif ?>
			</div><!--my-info-->

<? if(!_('uid') || _('uid') == self::$login['uid']): ?>
	<?if (intval($this->preview) == 1):?> <?else:?>
		<div class="write-mood">
			<form id='add_state' name='add_state' action="" method="POST" onsubmit="return states.add_state_index('add_state');">
				<input id="state" name="state"  type="text" class="mood-input" value="我正在做什么。。。"  onfocus="states.onfocus_signature_text(state)" onblur="states.onblur_signature_text(state)"/>
				<input id='smile_tage' type='hidden' name='feel' value=""	/>
				<i:button xmlns:i="178" id="btn1" label ='提交' type="button" style="yes" btype="submit" />
				<span id="state_button" class="face-icon"></span>
				<div class="clearfix">&nbsp;</div>
		</div><!--write-mood-->
		<script>
		var panel1 = new SmilePane2('panel1', 'state_button', echo);
		function echo(s){
			var face = '[s:'+s+']';
			states.state_face(s,face);
		}
		$('state_button').observe('click', panel1.show.bindAsEventListener(panel1, {left:0, top:-10}));
		</script>
		</form>
	<?endif?>
<?endif?>